package com.aaa.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @BelongsPackage: com.aaa.aop
 * @Description:
 * @CreateTime: 2023-04-07  08:58
 * @Author: ql
 */
@Component
@Aspect
public class LoginAspect {
    //定义切点
    @Pointcut(value = "@annotation(com.aaa.aop.annotation.Log)")
    public void poincut(){
    }

    @AfterReturning(value = "poincut()",returning = "res")
    public void afterReturning(JoinPoint joinPoint, Object res){

    }
}
